﻿* {
    margin: 0px;
    padding: 0px;
}

li {
    list-style: none;
}

#msg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9991;
    left: 0px;
    top: 0px;
    background-image: url(../../static-images/angpao/hongbaomsgbg.png);
    background-repeat: repeat;
    display: none;
    cursor: pointer;
}

#msg dl {
    width: 150px;
    height: 215px;
    position: fixed;
    z-index: 9992;
    left: 50%;
    top: 50%;
    margin-left: -75px;
    margin-top: -137px;
}

#msg dl dt img {
    box-shadow: 0px 0px 50px #FFFF00;
    -moz-box-shadow: 0px 0px 50px #FFFF00;
    -webkit-box-shadow: 0px 0px 50px #FFFF00;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
}

#msg dl dd {
    width: 48px;
    height: 48px;
    text-align: center;
    line-height: 48px;
    background-color: #FFF;
    color: #FF0000;
    position: absolute;
    right: -14px;
    top: -14px;
    -moz-border-radius: 100px;
    -webkit-border-radius: 100px;
    border-radius: 100px;
    font-weight: bold;
    font-size: 42px;
    font-family: Arial Black, Arial;
    border: solid 2px #FF0000;
}

#msg span {
    display: block;
    position: fixed;
    left: 0px;
    top: 50%;
    width: 100%;
    font-size: 36px;
    text-align: center;
    color: #FFFF00;
    margin-top: 100px;
}

#msg span strong {
    color: #FF0000;
    font-family: Arial Black, Arial;
    font-size: 64px;
}

.hidebox {
    display: none;
}

.cenbox {
    width: 1000px;
    margin: auto;
}

.hongbao img {
    position: fixed;
    z-index: 1;
    cursor: pointer;
}

.banner {
    height: 720px;
    background-image: url(../../static-images/angpao/banner.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
}

.banner ul {
    width: 400px;
    height: 200px;
    position: absolute;
    left: 50%;
    margin-left: -200px;
    bottom: 173px;
    overflow: hidden;
}

.banner ul li {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 16px;
}

.banner ul li small {
    font-size: 14px;
    margin-right: 20px;
}

.banner ul li span {
    color: #00FF00;
    margin-right: 20px;
}

.banner ul li strong {
    color: #FFFF00;
}

.main1 {
    height: 100%;
    background-image: url(../../static-images/angpao/big_bg.jpg);
    background-repeat: repeat-y;
    background-position: center top;
    padding-top: 40px;
    padding-bottom: 40px;
}

.main1 table {
    text-align: center;
    background-color: #990000;
}

.main1 table td {
    padding: 10px;
}

.main1 table tr:first-child td {
    font-weight: bold;
    background-color: #FFFF00;
    color: #FF0000;
    font-size: 24px;
}

.main1 table tr td {
    background-color: #FF0000;
    font-size: 18px;
}

.footbox {
    background-color: #670002;
    padding-top: 40px;
    padding-bottom: 40px;
}

.footbox h1 {
    text-align: center;
    font-size: 24px;
    color: #FFCC00;
}

.footbox p {
    padding-top: 15px;
    color: #FFFF00;
}


.winning-angpao-img img {
    width: 20px;
    height: auto;
}

#grabbing-box {
    width: 380px;
    height: 300px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    padding: 10px;
}

#grabbing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: scroll 35s linear infinite;
}

#grabbing-list li {
    background: #ffe6c7;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #ff3b00;
}

.amount {
    color: #ff2d00;
}

/* GPU smooth scroll */
@keyframes scroll {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(-50%)
    }
}

.cover-all {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #fff6b2 40%, #ddab57 100%);
    z-index: 10000;
    display: none;
    background-size: cover;
    background-repeat: no-repeat;
}

.cover-front {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    width: 100%;
    height: 100%;
    text-align: center;
}


.cover-front img {
    width: 100%;
    height: 100%;
    max-width: 500px;
}

.grabbing-container {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    width: 100%;
    height: auto;
    text-align: center;
}

.cover-all-start-claim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    background-size: cover;
    background-repeat: no-repeat;
}

.cover-all-start-claim #title-start-claim {
    width: 100%;
    max-width: 350px;
}

.cover-all-start-claim #start-claim-desc {
    width: 100%;
    max-width: 500px;
}

.cover-all-start-claim .bg-start-claim {
    position: relative;
}

.cover-all-start-claim .start-claim-d {
    position: absolute;
    top: 18%;
}

.cover-all-start-claim .start-claim-d #start-claim {
    max-width: 380px;
    width: 100%;
}

.cover-all-start-claim .start-claim-d #start-claim-button {
    max-width: 320px;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    cursor: pointer;
    margin-top: -50px;
}

#close-claim-button {
    cursor: pointer;
}

.angpao-rain-overlay-body {
    z-index: 10050;
    position: relative;
    display: none;
}

.angpao-icon-wrapper {
    position: fixed;
    left: 10px;
    bottom: 80px;
    z-index: 100;
    text-align: right;
}

.angpao-icon-wrapper #angpao-icon {
    width: 90px;
    cursor: pointer;
}

.angpao-bag-wrapper {
    position: fixed;
    top: -280px;
    display: none;
}

.angpao-bag-wrapper #angpao-bag {
    display: table;
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 400px;
}

#jqk-logo {
    position: fixed;
    top: 10px;
    z-index: 999990;
    left: 10px;
    width: 120px;
    display: none;
}

.shaking-box {
    animation: shake 2s infinite;
}

@keyframes shake {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(10px);
    }

    75% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes drop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
}

.angpao {
    position: fixed;
    top: -100px;
    left: 50%;
    width: 50%;
    display: none;
    cursor: pointer;
    max-width: 100px;
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg);
}

.angpao-amount {
    display: none;
    position: fixed;
    color: #000000;
    font-weight: bold;
    z-index: 9999999;
    background: linear-gradient(to bottom, #fff6b2 40%, #ddab57 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 1.2px;
    -webkit-text-stroke-color: #680d01;
    font-family: Myriad Pro;
}

.angpao-claim-wrapper {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 970px;
    z-index: 999999;
}

.angpao-claim-wrapper .angpao-claim-image {
    width: 100%;
    position: relative;
    left: 50%;
    transform: translate(-50%, 0);
    max-width: 400px;
}

.angpao-claim-wrapper .angpao-claim-title {
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    background: #f53602;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.angpao-claim-wrapper .angpao-claim-amount {
    font-size: 3.2rem;
    font-weight: bold;
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, 0);
    background: #f53602;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.angpao-claim-wrapper .angpao-claim-btn {
    position: absolute;
    width: 100%;
    max-width: 200px;
    top: 58%;
    left: 50%;
    transform: translate(-50%, 0);
    cursor: pointer;
    z-index: 10;
}

a#close-angpao {
    float: right;
    margin-top: 0px;
    margin-right: 120px;
    cursor: pointer;
    color: #fff;
    border: 2px solid #ffc230;
    border-radius: 30px;
    background: transparent;
    font-size: 38px;
    font-weight: bold;
    display: inline-block;
    line-height: 10px;
    padding: 10px 5px 18px 5px;
    opacity: 1;
}

.token-no {
    position: absolute;
    margin-left: 11px;
    top: 0%;
}

.token-no h3 {
    font-size: 70px;
    color: #000000;
    font-weight: bold;
    z-index: 9999999;
    background: linear-gradient(to bottom, #850000 40%, #840000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #ffe6c4;
    font-family: Myriad Pro;
}

#close-angpao:before {
    content: "×";
}

/* smartphones, iPhone, portrait 480x320 phones */
@media (min-width:320px) {
    a#close-angpao {
        margin-top: -20px;
        margin-right: -60px;
    }

    .angpao {
        width: 28%;
        max-width: 75px;
    }

    /* Small screens - smaller hongbao close image */
    .hongbao img {
        width: 50px !important;
        height: auto;
    }

}

@media (max-height:740px) {
    .angpao-claim-wrapper {
        top: 65%;
    }
}

/* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
@media (min-width:641px) {

    .angpao {
        width: 26%;
        max-width: 110px;
    }

    /* Medium screens - medium hongbao close image */
    .hongbao img {
        width: 60px !important;
        height: auto;
    }


}

/* tablet, landscape iPad, lo-res laptops ands desktops */
@media (min-width:961px) {
    .angpao {
        width: 25%;
        max-width: 110px;
    }

    a#close-angpao {
        margin-right: 0;
    }

    /* Large screens - larger hongbao close image */
    .hongbao img {
        width: 70px !important;
        height: auto;
    }
}

/* big landscape tablets, laptops, and desktops */
@media (min-width:1025px) {
    .angpao {
        width: 15%;
        max-width: 120px;
    }

    a#close-angpao {
        margin-right: 120px;
    }

    /* Extra large screens - largest hongbao close image */
    .hongbao img {
        width: 80px !important;
        height: auto;
    }
}

@keyframes jump-shaking {
    0% {
        transform: translateX(0)
    }

    25% {
        transform: translateY(-9px)
    }

    50% {
        transform: translateY(-9px) rotate(17deg)
    }

    75% {
        transform: translateY(-9px) rotate(-17deg)
    }

    /*65% { transform: translateY(-9px) rotate(17deg) }
        75% { transform: translateY(-9px) rotate(-17deg) }*/
    100% {
        transform: translateY(0) rotate(0)
    }
}

.opacity-bg {
    display: none;
    width: 100% !important;
    top: 0px;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: fixed;
}

.center-angpao {
    width: 150px;
    margin: auto;
}

@media screen and (max-width: 1200px) {
    .cover-front img {
        max-width: 650px;
    }

    #grabbing-box {
        width: 500px;
        height: 440px;
        margin-top: 70px;
    }
}

@media screen and (max-width: 820px) {
    #grabbing-box {
        width: 480px;
        height: 370px;
        margin-top: 60px;
    }
}

@media screen and (max-width: 768px) {
    #grabbing-box {
        width: 380px;
        height: 320px;
        margin-top: 50px;
    }

    .cover-front img {
        max-width: 500px;
    }
}

@media screen and (max-width: 576px) {
    #grabbing-box {
        width: 310px;
        height: 290px;
        margin-top: 45px;
    }

    .angpao-bag-wrapper #angpao-bag {
        max-width: 350px;
    }

    .angpao-claim-wrapper .angpao-claim-amount {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 390px) {

    #grabbing-box {
        width: 310px;
        height: 260px;
    }

    .angpao-claim-wrapper .angpao-claim-title {
        font-size: 1.4em;
    }

    .angpao-claim-wrapper .angpao-claim-amount {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 375px) {
    .angpao-bag-wrapper #angpao-bag {
        max-width: 300px;
    }

    #grabbing-box {
        width: 280px;
        height: 220px;
        margin-top: 1rem;
    }

    .angpao-list,
    .amount {
        font-size: 0.8rem;
    }

    .angpao-claim-wrapper .angpao-claim-title {
        font-size: 1.3em;
    }

    .angpao-claim-wrapper .angpao-claim-amount {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 360px) {
    #grabbing-box {
        margin-top: 3rem;
    }
}